package com.rybbaby.tss.front.tssStatistics.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/**
 * //@description  会员出勤统计
 *
 * 
 * //@author 雷春琼
 * 
 * //@createDate 2017-08-10 上午12:25:24
 */
//@Entity
//@Table(name = "view_student_attendance")
//@DynamicUpdate(true)
//@DynamicInsert(true)
public class ViewStudentAttendance implements Serializable {


	private static final long serialVersionUID = -7571488549946991272L;
	/** 主键 **/
	private String id;
	/** 会员姓名 **/
	private String studentName;
	/** 会员类型 **/
	//private Integer type;
	/** 会员生日 **/
	private Date birthdayDate;
	/** 联系方式 **/
	private String contactPhone;
	/** 应出勤次数 **/
	private Long sumReported;
	/** 出勤次数  **/
	private Long sumAttendance;
	/** 缺勤次数  **/
	private Long sumAbsence;
	/** 缺勤可补课  **/
	private Long sumMakeUpClass;
	/** 出勤率  **/
	private String attendanceRate;
	/** 最后考勤日期 **/
	private Date maxUpdateTime;



	/**
	 * 方法: 取得主键
	 *
	 * //@return java.lang.String 主键
	 */
	//@Id
	//@GeneratedValue(generator = "view_student_attendanceIDGenerator" , strategy = GenerationType.AUTO)
	//@GenericGenerator(name = "view_student_attendanceIDGenerator" , strategy = "uuid")
	//@Column(name = "id", nullable= false, length = 32)
	public String getId() {
		return this.id;
	}
	
	/**
	 * 方法: 设置主键
	 *
	 * //@param id 主键
	 */
	public void setId(String id) {
		this.id = id;
	}

	//@Column(name = "studentName", nullable= false, length = 12)
	public String getStudentName() {
		return studentName;
	}

	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}

	//@Column(name = "type", nullable= true, length = 11)
	/*public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}*/

	//@Column(name = "birthdayDate", nullable= true, length = 11)
	public Date getBirthdayDate() {
		return birthdayDate;
	}

	public void setBirthdayDate(Date birthdayDate) {
		this.birthdayDate = birthdayDate;
	}

	//@Column(name = "contactPhone", nullable= true, length = 11)
	public String getContactPhone() {
		return contactPhone;
	}

	public void setContactPhone(String contactPhone) {
		this.contactPhone = contactPhone;
	}

	//@Column(name = "sumReported", nullable= true, length = 11)
	public Long getSumReported() {
		return sumReported;
	}

	public void setSumReported(Long sumReported) {
		this.sumReported = sumReported;
	}

	//@Column(name = "sumAttendance", nullable= true, length = 11)
	public Long getSumAttendance() {
		return sumAttendance;
	}

	public void setSumAttendance(Long sumAttendance) {
		this.sumAttendance = sumAttendance;
	}

	//@Column(name = "sumAbsence", nullable= true, length = 11)
	public Long getSumAbsence() {
		return sumAbsence;
	}

	public void setSumAbsence(Long sumAbsence) {
		this.sumAbsence = sumAbsence;
	}

	//@Column(name = "sumMakeUpClass", nullable= true, length = 11)
	public Long getSumMakeUpClass() {
		return sumMakeUpClass;
	}

	public void setSumMakeUpClass(Long sumMakeUpClass) {
		this.sumMakeUpClass = sumMakeUpClass;
	}

	//@Transient
	public String getAttendanceRate() {
		return attendanceRate;
	}

	public void setAttendanceRate(String attendanceRate) {
		this.attendanceRate = attendanceRate;
	}

	//@Column(name = "maxUpdateTime", nullable= true, length = 11)
	public Date getMaxUpdateTime() {
		return maxUpdateTime;
	}

	public void setMaxUpdateTime(Date maxUpdateTime) {
		this.maxUpdateTime = maxUpdateTime;
	}

}